<div class="mainset">
    <div class="nav">
        <div class="nav-li focus">轮播设置</div>
        <a href="#admin/noticeset">
            <!-- <div class="nav-li">公告栏设置</div> -->
        </a>
    </div>

    <hr />

    <div class="info_box">
        <div class="title">上传首页大图：
            <p>备注：建议使用比例为<b>8:3</b>的图片</p>
        </div>
        <br/>
        <img-uploader upload-server-url="{{config.other.upload_image}}" text="上传图片" bind-input-key="$Cache.mainset.mainset_new_image" upload-callback="$Event.mainset.show_upload_image" one-way="true" style="display:block;margin-left:0;" max-width="1600">
        </img-uploader>
        <!-- <div class="title">最多选择3张</div> -->
        {{#each bus_loginer.config.home_imgs}}
        <div class="imgset">
            <div>
                <img class="img" bind-src="{{img_url}}?imageView/1/w/200/h/133">
            </div>
            <div>
                <input type="text" placeholder="输入链接或文字" bind-input="{{'href'}}" value="{{href}}">
            </div>
            <div>
                <button event-click="{{'$Top.$Event.mainset.remove_home_image'}}">删除</button>
                <button event-click="{{'$Top.$Event.mainset.edit_home_image'}}">编辑图片</button>
            </div>
        </div>
        {{/each}}
        <div>
            <button event-click="{{'$Event.mainset.upload_config'}}">确定</button>
        </div>
    </div>

</div>

<div class="img-editor-layer {{isChange&&'focus'}}">
    <imagecrop ratio="{{8/3}}" src="{{$Cache.imagecrop.src}}" bind-input="{{'$Cache.imagecrop.output_src'}}" event-done="{{'$Event.mainset.imagecrop.done'}}" event-cancel="{{'$Event.mainset.imagecrop.cancel'}}"></imagecrop>
</div>
